package com.pwser.controller;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/fm")
public class FreemarkerController {
	@RequestMapping("/test")
	public String index(Map<String, Object> result) {
		result.put("name", "张三");
		result.put("sex", "1");
		List<String> listResult = new ArrayList<String>();
		listResult.add("李四");
		listResult.add("王五");
		listResult.add("孙刘");
		result.put("userlist", listResult);
		return "freemarker";
	}

}
